package edu.asu.sefcom.crimenet.search;

import java.io.FileInputStream;
import java.io.IOException;
import java.util.Properties;

import org.neo4j.graphdb.GraphDatabaseService;
import org.neo4j.kernel.EmbeddedGraphDatabase;


public class GraphInfo {

	private GraphDatabaseService graphDB;
	
	public GraphInfo(){
		Properties properties = new Properties();
		try {
			properties.load(new FileInputStream("config/app.properties"));
		} catch (IOException e) {
		}
		String dbDir = ""
				+ properties
						.getProperty("edu.asu.sefcom.extract.profile.database.dir");
		graphDB = new EmbeddedGraphDatabase(dbDir);
	}

	public GraphDatabaseService getGraphDB() {
		return graphDB;
	}

	public void shutdown() {
		// TODO Auto-generated method stub
		graphDB.shutdown();
	}
	
	
}
